package com.shujunjun.project.controller;

import com.shujunjun.project.entity.User;
import com.shujunjun.project.service.IUserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
public class TalkController {
    final IUserService userService;

    @GetMapping(value = "user")
    public List<User> users() {
        return userService.list();
    }
}
